package com.wenwu.common.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class RelicsSurvey extends FileUtils implements Serializable {

	private static final long serialVersionUID = 5818026520411529528L;

	private Integer surveyId;

    private String number;

    private String projectName;

    private String approval;

    private String funding;

    private Date begintime;

    private Date endtime;

    private String timelength;

    private String organName;

    private String organAddress;

    private String chargePerson;

    private String organAptitude;

    private String investNumber;

    private String techPerson;

    private String otherPerson;

    private String investArea;

    private String investOverview;

    private String device;
    
    /**
     * 时间查询条件
     */
    private String timeSQL;
    
	public String getTimeSQL() {
		return timeSQL;
	}

	public void setTimeSQL(String timeSQL) {
		this.timeSQL = timeSQL;
	}

	public Integer getSurveyId() {
        return surveyId;
    }

    public void setSurveyId(Integer surveyId) {
        this.surveyId = surveyId;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getApproval() {
        return approval;
    }

    public void setApproval(String approval) {
        this.approval = approval;
    }

    public String getFunding() {
        return funding;
    }

    public void setFunding(String funding) {
        this.funding = funding;
    }

    public String getBegintime() {
    	if(begintime ==null)
			return null;
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			return sdf.format(begintime);
		} catch (Exception e) {
			return null;
		}
        //return begintime;
    }

    public void setBegintime(String begintime) {
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			this.begintime = sdf.parse(begintime);
		} catch (Exception e) {
		}
        //this.begintime = begintime;
    }

    public String getEndtime() {
    	if(endtime ==null)
			return null;
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			return sdf.format(endtime);
		} catch (Exception e) {
			return null;
		}
        //return endtime;
    }

    public void setEndtime(String endtime) {
    	try {
			SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
			this.endtime = sdf.parse(endtime);
		} catch (Exception e) {
		}
       // this.endtime = endtime;
    }

    public String getTimelength() {
        return timelength;
    }

    public void setTimelength(String timelength) {
        this.timelength = timelength;
    }

    public String getOrganName() {
        return organName;
    }

    public void setOrganName(String organName) {
        this.organName = organName;
    }

    public String getOrganAddress() {
        return organAddress;
    }

    public void setOrganAddress(String organAddress) {
        this.organAddress = organAddress;
    }

    public String getChargePerson() {
        return chargePerson;
    }

    public void setChargePerson(String chargePerson) {
        this.chargePerson = chargePerson;
    }

    public String getOrganAptitude() {
        return organAptitude;
    }

    public void setOrganAptitude(String organAptitude) {
        this.organAptitude = organAptitude;
    }

    public String getInvestNumber() {
        return investNumber;
    }

    public void setInvestNumber(String investNumber) {
        this.investNumber = investNumber;
    }

    public String getTechPerson() {
        return techPerson;
    }

    public void setTechPerson(String techPerson) {
        this.techPerson = techPerson;
    }

    public String getOtherPerson() {
        return otherPerson;
    }

    public void setOtherPerson(String otherPerson) {
        this.otherPerson = otherPerson;
    }

    public String getInvestArea() {
        return investArea;
    }

    public void setInvestArea(String investArea) {
        this.investArea = investArea;
    }

    public String getInvestOverview() {
        return investOverview;
    }

    public void setInvestOverview(String investOverview) {
        this.investOverview = investOverview;
    }

    public String getDevice() {
        return device;
    }

    public void setDevice(String device) {
        this.device = device;
    }
}